package com.ljq.cksp.service;

import com.ljq.cksp.pojo.User;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

/**
 * @Author:ljq
 * @Date:2020/2/24
 */
public interface UserService {
    Page<User> listUser(int start, int size);
    boolean nameIsExist(String username);
    boolean sendMail(String content);
    void delete(int id);
    boolean validate(String username, String password);
    void save(User user);
    void register(User user);
    void addAdmin(User user);
    User modify(int id, User user);
    User modifyPassword(int id, String password);
    User findByName(String username);
    User findById(int id);
    User findByEmail(String email);
}
